Skip to content

gh-15769: Make string.templatelib.Interpolation generic#15774

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
Andrew5057:generic-interpolation
May 11, 2026
Merged

gh-15769: Make string.templatelib.Interpolation generic#15774
JelleZijlstra merged 1 commit into
python:mainfrom
Andrew5057:generic-interpolation

Conversation

@Andrew5057
Copy link
Copy Markdown
Contributor

Resolves #15769. Allows Interpolation instances constructed with __new__ to be parameterized. Instances constructed implicitly via t-strings are unaffected; support could be added at a later date once Template parameterization is more feasible.

Allows `Interpolation` instances constructed with `__new__` to
be parameterized. Instances constructed implicitly via t-strings
are unaffected.
@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit bfcf8df into python:main May 11, 2026
56 checks passed
@Andrew5057 Andrew5057 deleted the generic-interpolation branch May 11, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could string.templatelib.Interpolation be generic, even if Template isn't?

3 participants